import { CHANGE_LOCATION_SELECTED } from './shippingActiveTypes';

let defaultState = {
    LocationSelected: {},//之前已经输入的地址位置对象
}
export default (state = defaultState, action) => {
    if (action.type === CHANGE_LOCATION_SELECTED) {
        let initState = JSON.parse(JSON.stringify(state));
        initState.LocationSelected = action.value.value;
        return initState;
    }
    return state;
}